﻿<?xml version="1.0" encoding="utf-8"?>
<schema id="NLog.Targets.SignalR"
			 targetNamespace="http://kirkone.de/NLog.Targets.SignalR.xsd"
			 xmlns="http://www.w3.org/2001/XMLSchema"
			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			 xmlns:mstns="http://kirkone.de/NLog.Targets.SignalR.xsd"
			 xmlns:nlog="http://www.nlog-project.org/schemas/NLog.xsd"
			 elementFormDefault="qualified">
	<import namespace="http://www.nlog-project.org/schemas/NLog.xsd" />
	<complexType name="SignalR">
		<annotation>
			<documentation>
				The SignalR target pushes log messages to a SignalR hub.
			</documentation>
		</annotation>
		<complexContent>
			<extension base="nlog:Target">
				<choice minOccurs="0" maxOccurs="unbounded">
					<element name="name" type="string" minOccurs="1" maxOccurs="1" nillable="false" />
					<element name="uri" type="string" minOccurs="1" maxOccurs="1" nillable="false" />
					<element name="hubName" type="string" minOccurs="0" maxOccurs="1" />
					<element name="methodName" type="string" minOccurs="0" maxOccurs="1" />
					<element name="useDefaultCredentials" type="boolean" minOccurs="0" maxOccurs="1" />
					<element name="layout" type="nlog:Layout" minOccurs="0" maxOccurs="1" />
				</choice>
				<attribute name="layout" type="nlog:SimpleLayoutAttribute">
					<annotation>
						<documentation>Instance of  that is used to format log messages.</documentation>
					</annotation>
				</attribute>
				<attribute name="name" type="string">
					<annotation>
						<documentation>Name of the target.</documentation>
					</annotation>
				</attribute>
				<attribute name="uri" type="string">
					<annotation>
						<documentation>The URI where the SignalR hub is bound.</documentation>
					</annotation>
				</attribute>
				<attribute name="hubName" type="string" default="LoggingHub">
					<annotation>
						<documentation>The name of the target hub.</documentation>
					</annotation>
				</attribute>
				<attribute name="methodName" type="string" default="Log">
					<annotation>
						<documentation>The name of the Method that will be called.</documentation>
					</annotation>
				</attribute>
				<attribute name="useDefaultCredentials" type="boolean" default="false">
					<annotation>
						<documentation>Use the Credentials of the context for the internal connection.</documentation>
					</annotation>
				</attribute>
			</extension>
		</complexContent>
	</complexType>
</schema>